package cn.edu.demo.service;

import cn.edu.demo.pojo.*;

import java.util.Date;
import java.util.List;

public interface OrdersService {
    //获取最后订单id
    public String getLastOid();
    //插入订单
    public boolean newOrder(OrdersWithBLOBs bloBs);
    //支付订单
    public boolean payOrder(String o_id,String money);

   // public Orders getOrder(String o_id);

   // Orders sureOrders(String d_id, String d_point, String carnum, long phone, String d_name, String c_type);

    Orders getOrder(String o_id);

    public Orders sureOrders(String d_id, String d_point, String carnum, long phone, String d_name, String c_type);

    public List<OrdersWithBLOBs> history(String uid);

    public List<OrdersWithBLOBs> sure(String uid);

//    public List<OrdersWithBLOBs> sure(String o_id);

    public Orders cancel(String o_id, String time);

    public Passenger com(String o_id, String comment);

//    public Driver sure(String d_name, long phone);

    //public Orders sure(String o_id);
}
